package midoo.server.core;

import midoo.common.MConfig;

/**
 * Created by ajianzheng on 2015/4/11.
 */
public class MMessageExecutorConfig implements MConfig {
    private int threadPoolSize;
    private int workQueueSize;
    private long taskTimeout;

    public MMessageExecutorConfig() {
//        threadPoolSize = Runtime.getRuntime().availableProcessors()*10;
        threadPoolSize = 100;
        workQueueSize = 100000;
        taskTimeout = 10000;
    }

    public int getThreadPoolSize() {
        return threadPoolSize;
    }

    public void setThreadPoolSize(int threadPoolSize) {
        this.threadPoolSize = threadPoolSize;
    }

    public int getWorkQueueSize() {
        return workQueueSize;
    }

    public void setWorkQueueSize(int workQueueSize) {
        this.workQueueSize = workQueueSize;
    }

    public long getTaskTimeout() {
        return taskTimeout;
    }

    public void setTaskTimeout(long taskTimeout) {
        this.taskTimeout = taskTimeout;
    }
}
